package com.core;

import com.core.RollMethod.Method;


public class Client {
	
	UserInfo userInfo;
	RollMethod rollMethod;
	
	
	public Client() {
		ctor(null, null);
	}
	
	public Client(String ClientName) {
		ctor(ClientName, null);
	}
	
	public Client(String ClientName, String ClientID) {
		ctor(ClientName, ClientID);
	}
	
	private void ctor(String ClientName, String ClientID) {
		userInfo = new UserInfo(ClientName, ClientID);
		rollMethod = new RollMethod();
	}
	
	public String RollDice() {
		return rollMethod.Roll(null, 0, null);
	}
	
	public String RollDice(Method method) {
		return rollMethod.Roll(null, 0, null);
	}
	
	public String RollDice(int digit) {
		return rollMethod.Roll(null, digit, null);
	}
	
	public String RollDice(Method method, final int digit, final String validset) {
		return rollMethod.Roll(method, digit, validset);
	}
	
	public void printUserInfo() {
		
		System.out.println("Client Name: " + userInfo.getClientName());
		System.out.println("Client ID:   " + userInfo.getClientID());
		
		return;
	}
	
}
